#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<errno.h>
#include<signal.h>
#include<sys/time.h>
#include<fcntl.h>
#include<unistd.h> 
#include<pthread.h>

void myfunc(int  signal){
	printf("catch you!!\n");
	sleep(5);
	return;
}

int main(int argc, char *args[])
{
	int ret;
	struct sigaction act, oldact;

	act.sa_handler = myfunc;
	sigemptyset(&act.sa_mask);
	act.sa_flags = 0;
	
	ret = sigaction(SIGINT, &act, &oldact);

	while(1);
	
	return 0;
}
